 #include <sapi/embed/php_embed.h>
 #include <stdio.h>
 int main(int argc, char * argv[]){
     PHP_EMBED_START_BLOCK(argc,argv);
    
 //    char * script = " print 'Hello World!'.\"\n\";";
     char *ch = malloc(100);
 //    zval rv;
 //    zend_eval_string(script, NULL,"Simple Hello World App" TSRMLS_CC);
     fputs(">>", stdout);
     while(fgets(ch, 99, stdin)) {
     	zend_eval_string(ch, NULL,"shell" TSRMLS_CC);
     	fputs("\n>>", stdout);
	//puts("\n");
     }
     PHP_EMBED_END_BLOCK();
     return 0;
 }
